package edu.cuit.avatar.decorator;

/**
 * @author <a href="mailto:1020zhaodan@163.com">Adan</a>
 * @version 1.0
 * @date 2025/7/5 11:12
 */
public class DecorationTest {
    public static void main(String[] args) {
        Integer number1 = 100; //自动装箱
        Integer number2 = 100; //自动装箱
        int number3 = 100;
        System.out.println(number1 == number3); //自动拆箱 true
        System.out.println(number1 == number2); //比较的是否为同一个引用  true

        Integer number4 = 200;
        Integer number5 = 200;
        int number6 = 200;
        System.out.println(number4 == number6); //自动拆箱 true
        System.out.println(number4 == number5); // false
    }
}
